local value = redis.call('GET', KEYS[1])
if value == false then
    return redis.call('SET', KEYS[1], 1)
else
    local new_value = tonumber(value) + 1
    return redis.call('SET', KEYS[1], new_value)
end